import { StoreExt } from '@helpers/ReactExt'
import { action, observable } from 'mobx'

class GlobalStore extends StoreExt<{}> {
  @observable private count: number = 1

  @action
  public setUploadFileLimitCount(count: number) {
    this.count = count
  }

  @action
  public getUploadFileLimitCount() {
    return this.count
  }
}

// tslint:disable-next-line:no-empty-interface
export interface GlobalStoreModel extends GlobalStore {
  // TODO:
}
export default new GlobalStore()
